/****************************************************
 *                                                  *
 *     Example program using the draw library       *
 *                                                  *
 *     GCW   29/12/94                               *
 *                                                  *
 ****************************************************/

#include bob:draw.figure

main()
{
 ox = oy = 300;            // Centre for chess's display
 chess = new drawfile();   

 chess->begin();                           // now define chess
  figure = chess->path();           // containing a path called figure
   for (i = -5; i < 6; i++)
    if (i != 0)
     {
      chess->circle(ox + (a = 100/i),oy, (a<0)?(-a):a );
      chess->circle(ox, oy + (a = 100/i),(a<0)?(-a):a );
     }
  chess->endpath(figure);              // end of figure

 /* modify attributes of objects in chess */
  fill(figure,blue);
  outline(figure, orange);
  winding_rule(figure,Even_Odd);

 /* save and display */
 chess->end("Ram::RamDisc0.$.chess");            // save chess  and display it
}
